package com.itic.appbase.framework.type;

public enum SelfliftingOrderType {
	group("group","大团"),order("order","订单"),sale("sale","销售额");
	private String key;
	private String name;
	SelfliftingOrderType(String key,String name){
		this.key = key;
		this.name = name;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static SelfliftingOrderType getType(String key){
		SelfliftingOrderType type = null;
		switch(key){
		case"group":
			type = SelfliftingOrderType.group;
			break;
		case"order":
			type = SelfliftingOrderType.order;
			break;
		case"sale":
			type = SelfliftingOrderType.sale;
			break;
		}
		return type;
	}
}
